package com.woniuxy.io.dir;

/**
 * description: DirDemo02 <br>
 * date: 2022/2/4 9:57 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
public class DirDemo03 {

    public static void main(String[] args) {
        printTen(1);
    }

    //打印1-10的数
    public static void printTen(int n) {
        if (n > 10) {
            return;
        }
        System.out.println(n);
        printTen(n + 1);
    }
}
